﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using Classes;
using FlightSystemControlLayer;

namespace FlightSystemWCF
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IFlightService" in both code and config file together.
    [ServiceContract]
    public interface IFlightService
    {
        [OperationContract]
        IList<City> GetCityList();

        [OperationContract]
        ListOfConnections getListOfConnections(City from, City to, int noOfSeats, DateTime departure);


        [OperationContract]
      
        Connection getCheapest(City from, City to, int noOfSeats, DateTime departure);

        [OperationContract]
        Connection getFastest(City from, City to, int noOfSeats, DateTime departure);

        [OperationContract]
        bool Book(Connection conn, int seatsWanted, string fname, string lname, string address, string country, string phone, string email, string passport);

    }
}
